package com.app.model;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;

import java.sql.Timestamp;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * 创业
 *
 * @author 16693103420
 * @since 2024-02-01
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
@TableName("tb_entrepreneurs")
public class EntrepreneursModel implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;//创业信息表ID
    private String name;//创业名称
    private String label;//标签
    private Double longitude;//经度
    private Double latitude;//纬度
    private String businessFace;//商家头像
    private String address;//商家地址
    private String introduce;//创业介绍
    private String areaId;//所属地区id
    private String cityId;//所属地区id
    private String areaCode;//所属地区id
    @TableField(exist = false)
    private List<String> value;//所属地区id


    @TableField(exist = false)
    private Double distance;//距离
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") //后端注解格式化日期
    private Timestamp createTime;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") //后端注解格式化日期
    private Timestamp updateTime;
    @TableField(exist = false)
    private String areaText;//所属地区转文字
}
